This paper achieves the tonal template of mandarin discourse , by judging from the emotional color and colloquial style of every word in the input discourse and using a kind of phraseological attribute grammar and the relevant combinational arithmetic 摘要本文根據輸入的漢語語篇中各個語詞的感情色彩屬性和語體色彩屬性,通過一種語詞屬性文法及其合一運算,來得到整個語篇的調模。